from core.args import DownloadArgs as Args
from core.downloader import Downloader
import time

# 下载参数
download_args = Args()
download_args.input_file('urls.txt')
download_args.output_dir('D:\downloadfile2')  # 指定下载目录
download_args.no_caption()  # 不下载字幕
download_args.format('flv720')  # 指定格式


# 指定参数(url在urls.txt中，不用指定url)
downloader = Downloader(args=download_args)
start = time.time()
downloader.start()
end = time.time()
use_time = str(end - start)
print('用时:' + use_time + 's')  # 用时:573.8079693317413s
